package com.ajmd.onlineexam.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.ibatis.type.ByteArrayTypeHandler;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.UUID;

/**
 * @author ajmd
 * @since 2023/3/25 20:34
 */

@TableName("e_folder")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
//@Component
public class FolderPO implements Serializable {
    //唯一标识
    private String id;
    //父文件夹id
    private String parentId;
    //文件夹全id
    private String fullId;
    //分类名
    private String typeName;
    //排序
    private Integer sort;
    //公开范围
    private Integer publicRange;
    //创建人
    private String createPerson;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp createTime;
    //修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp updateTime;
    //文件夹类型（0题库、1试卷、）
    private Integer folderType;
    //子分类数量
    private Integer childNum;
    //整条分类链是否同一个人创建,0是1否
    private Integer chainCreatedBySamePerson;
}
